package com.qst.controller;

import com.qst.domain.VipLedger;
import com.qst.dto.Result;
import com.qst.service.IVipLedgerService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/ledger")
public class VipLedgerController {

    @Resource
    private IVipLedgerService vipLedgerService;

    @GetMapping("/{id}")
    public List<VipLedger> getLedger(@PathVariable("id") Long id) {
        return vipLedgerService.findLedgerById(id);
    }
}
